<?php session_start();

if($_SESSION['ultimaAcaoMinhaConta'] != "TROCARSENHA") {
    unset($_SESSION["menssagemErro"]);
}

$menssagemErro = $_SESSION["menssagemErro"];


?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="/Esquina_da_TI/default.css" rel="stylesheet" type="text/css" media="screen" />
        <script type="text/javascript" src="formulario.js"></script>
        <script type="text/javascript" src="../js/validador.js"></script>
        <title>Trocar sua Senha</title>
    </head>
    <body>
        <div id="wrapper">
                <div id="page">
             
                        <div class="post" align="center">
                            <h1>Alteração de Senha</h1>
            <form id="TrocarSenha" name="TrocarSenha" method="POST" action="ControleTrocarSenha.php">
                
                <table  border="0" cellspacing="1" cellpadding="1">
                    <tr>
                        <td class="head" colspan="2" align="center">Alterar Dados</td>
                    </tr>
                     <tr>
                                        <th>Senha Atual:</th>
                                        <td ><input type="password"  size="20"  id="senhaAtual" name="senhaAtual"  /> </td>
                                    </tr>
                    <tr>
                                        <th>Nova Senha:</th>
                                        <td ><input type="password"  size="20" onkeyup="verificaForcaSenha('senhaUsuario','forcaSenha');" id="senhaUsuario" name="senhaUsuario" /> </td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <table id='forcaSenha'></table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>Confirme Sua Senha:</th>
                                        <td ><input type="password" size="20" id="confirmaSenha" name="confirmaSenha"  onblur="validarSenha(senhaUsuario, confirmaSenha)" />
                                        </td>
                                    </tr>
                                    <br>
                                    <tr>
                                        <td colspan="2" align="center"><input type="submit" value="Confirmar Alteração" name="alterar" id="alterar"/></td>
                                    </tr>
                </table>
            </form>
                        </div>
                    </div>
                </div>
        
    </body>
</html>

